<template>
    <lay-card height="100%">
      <lay-row space="10">
        <lay-col md="12">
          <lay-quote size="sm"><h3>外部系统跳转链接(公共)</h3></lay-quote>
          <link-page :group="'sys_url'"></link-page>
        </lay-col>
        <lay-col md="12">
          <lay-quote size="sm"><h3>外部系统跳转链接(个人收藏)</h3></lay-quote>
          <link-page :group="groupName" v-if="visionFlag"></link-page>
        </lay-col>
      </lay-row>
    </lay-card>
</template>

<script lang="ts">
import LinkPage from "./LinkPage.vue";

export default {
    name: "FirstPage",
  components: {LinkPage}
}
</script>

<script setup lang="ts">

import {onBeforeMount, onMounted, ref} from "vue";

const visionFlag = ref(false)
const groupName = ref()

onBeforeMount(()=>{
  const user_detail = localStorage.getItem('user_detail');
  if(user_detail != null) {
    const userInfo = JSON.parse(localStorage.getItem('user_detail') as string);
    groupName.value = userInfo.user_no;
    console.log('groupName:', groupName.value)
    visionFlag.value = true
  }
})
</script>

<style scoped>

</style>